package com.pri.chat.adapter;

import android.widget.ImageView;

import androidx.annotation.Nullable;
import androidx.recyclerview.widget.RecyclerView;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.pri.chat.R;
import com.pri.chat.bean.PlayGameBean;

import java.util.List;

/**
 * 描述：添加类的描述
 *
 * @author wx5e48d604c2885118
 * @time 2020/4/11
 */
public class PlayGameAdapter extends BaseQuickAdapter<PlayGameBean, BaseViewHolder> {

    public PlayGameAdapter(int layoutResId, @Nullable List<PlayGameBean> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, PlayGameBean item) {
        ((ImageView)helper.getView(R.id.iv_name)).setImageResource(item.getName());
        ((ImageView)helper.getView(R.id.iv_right)).setImageResource(item.getRight());
    }
}
